package com.ruifu.pls.entity;
import com.ruifu.pls.model.odoReturn.*;
import com.ruifu.pls.model.odoReturnAdd.GLinGetInfo;
import com.ruifu.pls.model.odoReturnAdd.GLinOrder;
import com.ruifu.pls.model.odoReturnConform.*;
import com.ruifu.pls.model.odoReverseAddConform.GLinReverseGetInfo;
import com.ruifu.pls.model.odoReverseAddConform.GLinReverseInvoiceDetail;
import com.ruifu.pls.model.odoReverseAddConform.GLinReverseInvoies;
import com.ruifu.pls.model.odoReverseAddConform.GLinReverseOrder;
import com.ruifu.pls.model.statusUpdate.GLAsnHerader;

import javax.persistence.*;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * ********************************************************
 * * @desc  ：
 * * @author  ${user}
 * * @date    ${date}
 * * @version v1.0
 * * ${tags}
 * *******************************************************
 */
@Entity
@Table(name = "DOC_ORDER_HEADER")
public class DocOrderHeader {
    private String orderno;
    private String customerid;
    private String priority;
    private String soreference1;
    private Date ordertime;
    private Date expectedshipmenttime1;
    private Date expectedshipmenttime2;
    private Date requireddeliverytime;
    private String consigneeid;
    private String CContact;
    private String consigneename;
    private String CAddress1;
    private String CAddress2;
    private String CAddress3;
    private String CAddress4;
    private String CCity;
    private String CProvince;
    private String CCountry;
    private String CFax;
    private String billingid;
    private String CZip;
    private String BContact;
    private String billingname;
    private String BAddress1;
    private String BAddress2;
    private String BAddress3;
    private String BAddress4;
    private String BCity;
    private String BProvince;
    private String BZip;
    private String BCountry;
    private String deliverytermsdescr;
    private String BFax;
    private String BEmail;
    private String paymenttermsdescr;
    private String deliveryterms;
    private String paymentterms;
    private String door;
    private String route;
    private String stop;
    private String sostatus;
    private String placeofdischarge;
    private String placeofdelivery;
    private String ordertype;
    private String userdefine1;
    private String userdefine2;
    private String userdefine3;
    private String userdefine4;
    private String userdefine5;
    private Date addtime;
    private String addwho;
    private Date edittime;
    private String editwho;
    private String notes;
    private String soreference2;
    private String soreference3;
    private String carrierid;
    private String carriername;
    private String carrieraddress1;
    private String carrieraddress3;
    private String carrieraddress2;
    private String carrieraddress4;
    private String carriercity;
    private String carrierprovince;
    private String carriercountry;
    private String carrierzip;
    private String issuepartyid;
    private String issuepartyname;
    private String IAddress1;
    private String IAddress2;
    private String IAddress3;
    private String IAddress4;
    private String ICity;
    private String IProvince;
    private String ICountry;
    private String IZip;
    private Date lastshipmenttime;
    private String edisendflag;
    private String pickingPrintFlag;
    private String createsource;
    private Date edisendtime;
    private Date edisendtime2;
    private Date edisendtime3;
    private Date edisendtime4;
    private Date edisendtime5;
    private String BTel1;
    private String BTel2;
    private String carriercontact;
    private String carriermail;
    private String carrierfax;
    private String carriertel1;
    private String carriertel2;
    private String CMail;
    private String CTel1;
    private String CTel2;
    private String IContact;
    private String IMail;
    private String IFax;
    private String ITel1;
    private String ITel2;
    private String releasestatus;
    private String transportation;
    private String soreference4;
    private String soreference5;
    private String HEdi01;
    private String HEdi02;
    private String HEdi03;
    private String HEdi04;
    private String HEdi05;
    private String HEdi06;
    private String HEdi07;
    private String HEdi08;
    private Double HEdi09;
    private Double HEdi10;
    private String userdefine6;
    private String orderPrintFlag;
    private String rfgettask;
    private String warehouseid;
    private String erpcancelflag;
    private String zonegroup;
    private Date medicalxmltime;
    private String placeofloading;
    private String requiredeliveryno;
    private String singlematch;
    private String serialnocatch;
    private String followup;
    private String userdefinea;
    private String userdefineb;
    private String salesorderno;
    private String invoiceprintflag;
    private String invoiceno;
    private String invoicetitle;
    private String invoicetype;
    private String invoiceitem;
    private Double invoiceamount;
    private String archiveflag;
    private String consigneenameE;
    private String puttolocation;
    private String fulAlc;
    private String deliveryno;
    private String channel;
    private String waveno;
    private BigDecimal allocationcount;
    private String expressprintflag;
    private String deliverynoteprintflag;
    private String weightingflag;
    private String udfprintflag1;
    private String udfprintflag2;
    private String udfprintflag3;
    private String allowshipment;
    private String cartongroup;
    private String cartonid;
    private String ordergroupno;
    private String transservicelevel;
    private String allowship;
    private String orderhandleinstruction;
    private String HEdi21;
    private String allowPartialShip;
    private String processingflag;
    private String waverule;
    private String locgroup1list;
    private String locgroup2list;

    // Constructors

    /** default constructor */
    public DocOrderHeader() {
    }

    /** minimal constructor */
    public DocOrderHeader(String orderno, String customerid,
                                  Date ordertime, String consigneeid, String sostatus, Date addtime,
                                  Date edittime, String edisendflag, String releasestatus,
                                  String archiveflag, String channel, String waveno, String allowship) {
        this.orderno = orderno;
        this.customerid = customerid;
        this.ordertime = ordertime;
        this.consigneeid = consigneeid;
        this.sostatus = sostatus;
        this.addtime = addtime;
        this.edittime = edittime;
        this.edisendflag = edisendflag;
        this.releasestatus = releasestatus;
        this.archiveflag = archiveflag;
        this.channel = channel;
        this.waveno = waveno;
        this.allowship = allowship;
    }

    /** full constructor */
    public DocOrderHeader(String orderno, String customerid,
                                  String soreference1, Date ordertime, Date expectedshipmenttime1,
                                  Date expectedshipmenttime2, Date requireddeliverytime,
                                  String priority, String consigneeid, String CContact,
                                  String consigneename, String CAddress1, String CAddress2,
                                  String CAddress3, String CAddress4, String CCity, String CProvince,
                                  String CCountry, String CFax, String billingid, String CZip,
                                  String BContact, String billingname, String BAddress1,
                                  String BAddress2, String BAddress3, String BAddress4, String BCity,
                                  String BProvince, String BZip, String BCountry,
                                  String deliverytermsdescr, String BFax, String BEmail,
                                  String paymenttermsdescr, String deliveryterms,
                                  String paymentterms, String door, String route, String stop,
                                  String sostatus, String placeofdischarge, String placeofdelivery,
                                  String ordertype, String userdefine1, String userdefine2,
                                  String userdefine3, String userdefine4, String userdefine5,
                                  Date addtime, String addwho, Date edittime, String editwho,
                                  String notes, String soreference2, String soreference3,
                                  String carrierid, String carriername, String carrieraddress1,
                                  String carrieraddress3, String carrieraddress2,
                                  String carrieraddress4, String carriercity, String carrierprovince,
                                  String carriercountry, String carrierzip, String issuepartyid,
                                  String issuepartyname, String IAddress1, String IAddress2,
                                  String IAddress3, String IAddress4, String ICity, String IProvince,
                                  String ICountry, String IZip, Date lastshipmenttime,
                                  String edisendflag, String pickingPrintFlag, String createsource,
                                  Date edisendtime, Date edisendtime2, Date edisendtime3,
                                  Date edisendtime4, Date edisendtime5, String BTel1, String BTel2,
                                  String carriercontact, String carriermail, String carrierfax,
                                  String carriertel1, String carriertel2, String CMail, String CTel1,
                                  String CTel2, String IContact, String IMail, String IFax,
                                  String ITel1, String ITel2, String releasestatus,
                                  String transportation, String soreference4, String soreference5,
                                  String HEdi01, String HEdi02, String HEdi03, String HEdi04,
                                  String HEdi05, String HEdi06, String HEdi07, String HEdi08,
                                  Double HEdi09, Double HEdi10, String userdefine6,
                                  String orderPrintFlag, String rfgettask, String warehouseid,
                                  String erpcancelflag, String zonegroup, Date medicalxmltime,
                                  String placeofloading, String requiredeliveryno,
                                  String singlematch, String serialnocatch, String followup,
                                  String userdefinea, String userdefineb, String salesorderno,
                                  String invoiceprintflag, String invoiceno, String invoicetitle,
                                  String invoicetype, String invoiceitem, Double invoiceamount,
                                  String archiveflag, String consigneenameE, String puttolocation,
                                  String fulAlc, String deliveryno, String channel, String waveno,
                                  BigDecimal allocationcount, String expressprintflag,
                                  String deliverynoteprintflag, String weightingflag,
                                  String udfprintflag1, String udfprintflag2, String udfprintflag3,
                                  String allowshipment, String cartongroup, String cartonid,
                                  String ordergroupno, String transservicelevel, String allowship,
                                  String orderhandleinstruction, String HEdi21,
                                  String allowPartialShip, String processingflag, String waverule,
                                  String locgroup1list, String locgroup2list) {
        this.orderno = orderno;
        this.customerid = customerid;
        this.soreference1 = soreference1;
        this.ordertime = ordertime;
        this.expectedshipmenttime1 = expectedshipmenttime1;
        this.expectedshipmenttime2 = expectedshipmenttime2;
        this.requireddeliverytime = requireddeliverytime;
        this.priority = priority;
        this.consigneeid = consigneeid;
        this.CContact = CContact;
        this.consigneename = consigneename;
        this.CAddress1 = CAddress1;
        this.CAddress2 = CAddress2;
        this.CAddress3 = CAddress3;
        this.CAddress4 = CAddress4;
        this.CCity = CCity;
        this.CProvince = CProvince;
        this.CCountry = CCountry;
        this.CFax = CFax;
        this.billingid = billingid;
        this.CZip = CZip;
        this.BContact = BContact;
        this.billingname = billingname;
        this.BAddress1 = BAddress1;
        this.BAddress2 = BAddress2;
        this.BAddress3 = BAddress3;
        this.BAddress4 = BAddress4;
        this.BCity = BCity;
        this.BProvince = BProvince;
        this.BZip = BZip;
        this.BCountry = BCountry;
        this.deliverytermsdescr = deliverytermsdescr;
        this.BFax = BFax;
        this.BEmail = BEmail;
        this.paymenttermsdescr = paymenttermsdescr;
        this.deliveryterms = deliveryterms;
        this.paymentterms = paymentterms;
        this.door = door;
        this.route = route;
        this.stop = stop;
        this.sostatus = sostatus;
        this.placeofdischarge = placeofdischarge;
        this.placeofdelivery = placeofdelivery;
        this.ordertype = ordertype;
        this.userdefine1 = userdefine1;
        this.userdefine2 = userdefine2;
        this.userdefine3 = userdefine3;
        this.userdefine4 = userdefine4;
        this.userdefine5 = userdefine5;
        this.addtime = addtime;
        this.addwho = addwho;
        this.edittime = edittime;
        this.editwho = editwho;
        this.notes = notes;
        this.soreference2 = soreference2;
        this.soreference3 = soreference3;
        this.carrierid = carrierid;
        this.carriername = carriername;
        this.carrieraddress1 = carrieraddress1;
        this.carrieraddress3 = carrieraddress3;
        this.carrieraddress2 = carrieraddress2;
        this.carrieraddress4 = carrieraddress4;
        this.carriercity = carriercity;
        this.carrierprovince = carrierprovince;
        this.carriercountry = carriercountry;
        this.carrierzip = carrierzip;
        this.issuepartyid = issuepartyid;
        this.issuepartyname = issuepartyname;
        this.IAddress1 = IAddress1;
        this.IAddress2 = IAddress2;
        this.IAddress3 = IAddress3;
        this.IAddress4 = IAddress4;
        this.ICity = ICity;
        this.IProvince = IProvince;
        this.ICountry = ICountry;
        this.IZip = IZip;
        this.lastshipmenttime = lastshipmenttime;
        this.edisendflag = edisendflag;
        this.pickingPrintFlag = pickingPrintFlag;
        this.createsource = createsource;
        this.edisendtime = edisendtime;
        this.edisendtime2 = edisendtime2;
        this.edisendtime3 = edisendtime3;
        this.edisendtime4 = edisendtime4;
        this.edisendtime5 = edisendtime5;
        this.BTel1 = BTel1;
        this.BTel2 = BTel2;
        this.carriercontact = carriercontact;
        this.carriermail = carriermail;
        this.carrierfax = carrierfax;
        this.carriertel1 = carriertel1;
        this.carriertel2 = carriertel2;
        this.CMail = CMail;
        this.CTel1 = CTel1;
        this.CTel2 = CTel2;
        this.IContact = IContact;
        this.IMail = IMail;
        this.IFax = IFax;
        this.ITel1 = ITel1;
        this.ITel2 = ITel2;
        this.releasestatus = releasestatus;
        this.transportation = transportation;
        this.soreference4 = soreference4;
        this.soreference5 = soreference5;
        this.HEdi01 = HEdi01;
        this.HEdi02 = HEdi02;
        this.HEdi03 = HEdi03;
        this.HEdi04 = HEdi04;
        this.HEdi05 = HEdi05;
        this.HEdi06 = HEdi06;
        this.HEdi07 = HEdi07;
        this.HEdi08 = HEdi08;
        this.HEdi09 = HEdi09;
        this.HEdi10 = HEdi10;
        this.userdefine6 = userdefine6;
        this.orderPrintFlag = orderPrintFlag;
        this.rfgettask = rfgettask;
        this.warehouseid = warehouseid;
        this.erpcancelflag = erpcancelflag;
        this.zonegroup = zonegroup;
        this.medicalxmltime = medicalxmltime;
        this.placeofloading = placeofloading;
        this.requiredeliveryno = requiredeliveryno;
        this.singlematch = singlematch;
        this.serialnocatch = serialnocatch;
        this.followup = followup;
        this.userdefinea = userdefinea;
        this.userdefineb = userdefineb;
        this.salesorderno = salesorderno;
        this.invoiceprintflag = invoiceprintflag;
        this.invoiceno = invoiceno;
        this.invoicetitle = invoicetitle;
        this.invoicetype = invoicetype;
        this.invoiceitem = invoiceitem;
        this.invoiceamount = invoiceamount;
        this.archiveflag = archiveflag;
        this.consigneenameE = consigneenameE;
        this.puttolocation = puttolocation;
        this.fulAlc = fulAlc;
        this.deliveryno = deliveryno;
        this.channel = channel;
        this.waveno = waveno;
        this.allocationcount = allocationcount;
        this.expressprintflag = expressprintflag;
        this.deliverynoteprintflag = deliverynoteprintflag;
        this.weightingflag = weightingflag;
        this.udfprintflag1 = udfprintflag1;
        this.udfprintflag2 = udfprintflag2;
        this.udfprintflag3 = udfprintflag3;
        this.allowshipment = allowshipment;
        this.cartongroup = cartongroup;
        this.cartonid = cartonid;
        this.ordergroupno = ordergroupno;
        this.transservicelevel = transservicelevel;
        this.allowship = allowship;
        this.orderhandleinstruction = orderhandleinstruction;
        this.HEdi21 = HEdi21;
        this.allowPartialShip = allowPartialShip;
        this.processingflag = processingflag;
        this.waverule = waverule;
        this.locgroup1list = locgroup1list;
        this.locgroup2list = locgroup2list;
    }
    SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public GLDocOrderHeader glDocOrderHeader = new GLDocOrderHeader();//正向出库单确认
    public GLPickerInfo glPickerInfo = new GLPickerInfo();
    public GLReceiverInfo glReceiverInfo = new GLReceiverInfo();
    public GLSenderInfo glSenderInfo = new GLSenderInfo();


    public GLinOrder gLinOrder = new GLinOrder();
    public GLinGetInfo gLinGetInfo = new GLinGetInfo();

    public GLOrderLines glOrderLines = new GLOrderLines();
    public GLHeader glHeader = new GLHeader();//正向订单确认

    public GLinReverseOrder gLinReverseOrder = new GLinReverseOrder();
    public GLinReverseGetInfo gLinReverseGetInfo = new GLinReverseGetInfo();
    public GLinReverseInvoies gLinReverseInvoies = new GLinReverseInvoies();
   public GLinReverseInvoiceDetail gLinReverseInvoiceDetail = new GLinReverseInvoiceDetail();
   public GLAsnHerader glOrderHerader = new GLAsnHerader();//出库订单状态更新




    // Property accessors
    @Id
    @Column(name = "ORDERNO", nullable = false, length = 20)
    public String getOrderno() {
        return this.orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
        this.glHeader.setOrderCode(getOrderno());
        this.glHeader.setOrderCodeWms(getOrderno());


    }

    @Column(name = "CUSTOMERID", nullable = false, length = 30)
    public String getCustomerid() {
        return this.customerid;
    }

    public void setCustomerid(String customerid) {
        this.customerid = customerid;
        this.glHeader.setOwnerCode(getCustomerid());
        this.glDocOrderHeader.setOwnerCode((getCustomerid()));
        this.gLinOrder.setOwnerCode(getCustomerid());
        this.gLinReverseOrder.setProjectCode(getCustomerid());
        this.gLinReverseOrder.setOwnerCode(getCustomerid());
        this.glOrderHerader.setOwnerCode(getCustomerid());
    }

    @Column(name = "SOREFERENCE1", length = 50)
    public String getSoreference1() {
        return this.soreference1;
    }

    public void setSoreference1(String soreference1) {
        this.soreference1 = soreference1;
        this.glDocOrderHeader.setOrderCodeOwner(getSoreference1());
        this.glHeader.setOrderCode(getSoreference1());
        this.gLinOrder.setDeliveryOrderCode(getSoreference1());
        this.gLinReverseOrder.setOrderCode(getSoreference1());
        this.glOrderHerader.setOrderCode(getSoreference1());

    }

    @Temporal(TemporalType.DATE)
    @Column(name = "ORDERTIME", nullable = false, length = 7)
    public Date getOrdertime() {
        return this.ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
        if(ordertime == null)
        {
            this.gLinReverseOrder.setOrderTime(dateFormat.format(new Date()));
        }
        else
        {
            this.gLinReverseOrder.setOrderTime(dateFormat.format(ordertime));
        }
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "EXPECTEDSHIPMENTTIME1", length = 7)
    public Date getExpectedshipmenttime1() {
        return this.expectedshipmenttime1;
    }

    public void setExpectedshipmenttime1(Date expectedshipmenttime1) {
        this.expectedshipmenttime1 = expectedshipmenttime1;
        if(expectedshipmenttime1 == null)
        {
            this.glDocOrderHeader.setCreateTime(dateFormat.format(new Date()));
        }
        else
        {
            this.glDocOrderHeader.setCreateTime(dateFormat.format(expectedshipmenttime1));
        }
        if(expectedshipmenttime1 == null)
        {
            this.gLinOrder.setCreateTime(dateFormat.format(new Date()));
        }
        else
        {
            this.gLinOrder.setCreateTime(dateFormat.format(expectedshipmenttime1));
        }
        if(expectedshipmenttime1 == null)
        {
            this.gLinReverseOrder.setDeliveryTime(dateFormat.format(new Date()));
        }
        else
        {
            this.gLinReverseOrder.setDeliveryTime(dateFormat.format(expectedshipmenttime1));
        }
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "EXPECTEDSHIPMENTTIME2", length = 7)
    public Date getExpectedshipmenttime2() {
        return this.expectedshipmenttime2;
    }

    public void setExpectedshipmenttime2(Date expectedshipmenttime2) {
        //this.glDocOrderHeader.setScheduleDate(getExpectedshipmenttime2().toString());
        this.expectedshipmenttime2 = expectedshipmenttime2;
        if(expectedshipmenttime2 == null)
        {
            this.glDocOrderHeader.setScheduleDate(dateFormat.format(new Date()));
        }
        else
        {
            this.glDocOrderHeader.setScheduleDate(dateFormat.format(expectedshipmenttime2));
        }
        if(expectedshipmenttime2 == null)
        {
            this.gLinReverseOrder.setLatestDeliveryTime(dateFormat.format(new Date()));
        }
        else
        {
            this.gLinReverseOrder.setLatestDeliveryTime(dateFormat.format(expectedshipmenttime2));
        }
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "REQUIREDDELIVERYTIME", length = 7)
    public Date getRequireddeliverytime() {
        return this.requireddeliverytime;
    }

    public void setRequireddeliverytime(Date requireddeliverytime) {
        this.requireddeliverytime = requireddeliverytime;
    }

    @Column(name = "PRIORITY", length = 1)
    public String getPriority() {
        return this.priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    @Column(name = "CONSIGNEEID", nullable = false, length = 30)
    public String getConsigneeid() {
        return this.consigneeid;
    }

    public void setConsigneeid(String consigneeid) {
        this.consigneeid = consigneeid;
    }

    @Column(name = "C_CONTACT", length = 40)
    public String getCContact() {
        return this.CContact;
    }

    public void setCContact(String CContact) {
        this.CContact = CContact;
        this.glReceiverInfo.setName(getCContact());
        this.gLinGetInfo.setGetName(getCContact());
        this.gLinReverseGetInfo.setConsignee(getCContact());

    }

    @Column(name = "CONSIGNEENAME", length = 400)
    public String getConsigneename() {
        return this.consigneename;
    }

    public void setConsigneename(String consigneename) {
        this.consigneename = consigneename;
    }

    @Column(name = "C_ADDRESS1", length = 400)
    public String getCAddress1() {
        return this.CAddress1;
    }

    public void setCAddress1(String CAddress1) {
        this.CAddress1 = CAddress1;
        this.glReceiverInfo.setDetailAddress(getCAddress1());
        this.gLinGetInfo.setGetDetailAddress(getCAddress1());
        this.gLinReverseGetInfo.setDeliveryAddress(getCAddress1());

    }

    @Column(name = "C_ADDRESS2", length = 50)
    public String getCAddress2() {
        return this.CAddress2;
    }

    public void setCAddress2(String CAddress2) {
        this.CAddress2 = CAddress2;
        this.glReceiverInfo.setTown(getCAddress2());

    }

    @Column(name = "C_ADDRESS3", length = 50)
    public String getCAddress3() {
        return this.CAddress3;
    }

    public void setCAddress3(String CAddress3) {
        this.CAddress3 = CAddress3;
        this.glReceiverInfo.setArea(getCAddress3());

    }

    @Column(name = "C_ADDRESS4", length = 50)
    public String getCAddress4() {
        return this.CAddress4;
    }

    public void setCAddress4(String CAddress4) {
        this.CAddress4 = CAddress4;
        this.glReceiverInfo.setCompany(getCAddress4());

    }

    @Column(name = "C_CITY", length = 50)
    public String getCCity() {
        return this.CCity;
    }

    public void setCCity(String CCity) {
        this.CCity = CCity;
        this.glReceiverInfo.setCity(getCCity());

    }

    @Column(name = "C_PROVINCE", length = 50)
    public String getCProvince() {
        return this.CProvince;
    }

    public void setCProvince(String CProvince) {
        this.CProvince = CProvince;
        this.glReceiverInfo.setProvince(getCProvince());
        this.gLinGetInfo.setGetProvince(getCProvince());
        this.gLinReverseGetInfo.setDeliveryProvince(getCProvince());

    }

    @Column(name = "C_COUNTRY", length = 2)
    public String getCCountry() {
        return this.CCountry;
    }

    public void setCCountry(String CCountry) {
        this.CCountry = CCountry;
        this.glReceiverInfo.setCountryCode(getCCountry());

    }

    @Column(name = "C_FAX", length = 20)
    public String getCFax() {
        return this.CFax;
    }

    public void setCFax(String CFax) {
        this.CFax = CFax;
    }

    @Column(name = "BILLINGID", length = 30)
    public String getBillingid() {
        return this.billingid;
    }

    public void setBillingid(String billingid) {
        this.billingid = billingid;
    }

    @Column(name = "C_ZIP", length = 10)
    public String getCZip() {
        return this.CZip;
    }

    public void setCZip(String CZip) {
        this.CZip = CZip;
        this.glReceiverInfo.setZipCode(getCZip());

    }

    @Column(name = "B_CONTACT", length = 400)
    public String getBContact() {
        return this.BContact;
    }

    public void setBContact(String BContact) {
        this.BContact = BContact;
    }

    @Column(name = "BILLINGNAME", length = 400)
    public String getBillingname() {
        return this.billingname;
    }

    public void setBillingname(String billingname) {
        this.billingname = billingname;
    }

    @Column(name = "B_ADDRESS1", length = 400)
    public String getBAddress1() {
        return this.BAddress1;
    }

    public void setBAddress1(String BAddress1) {
        this.BAddress1 = BAddress1;
    }

    @Column(name = "B_ADDRESS2", length = 50)
    public String getBAddress2() {
        return this.BAddress2;
    }

    public void setBAddress2(String BAddress2) {
        this.BAddress2 = BAddress2;
    }

    @Column(name = "B_ADDRESS3", length = 50)
    public String getBAddress3() {
        return this.BAddress3;
    }

    public void setBAddress3(String BAddress3) {
        this.BAddress3 = BAddress3;
    }

    @Column(name = "B_ADDRESS4", length = 50)
    public String getBAddress4() {
        return this.BAddress4;
    }

    public void setBAddress4(String BAddress4) {
        this.BAddress4 = BAddress4;
    }

    @Column(name = "B_CITY", length = 50)
    public String getBCity() {
        return this.BCity;
    }

    public void setBCity(String BCity) {
        this.BCity = BCity;
    }

    @Column(name = "B_PROVINCE", length = 50)
    public String getBProvince() {
        return this.BProvince;
    }

    public void setBProvince(String BProvince) {
        this.BProvince = BProvince;
    }

    @Column(name = "B_ZIP", length = 10)
    public String getBZip() {
        return this.BZip;
    }

    public void setBZip(String BZip) {
        this.BZip = BZip;
    }

    @Column(name = "B_COUNTRY", length = 2)
    public String getBCountry() {
        return this.BCountry;
    }

    public void setBCountry(String BCountry) {
        this.BCountry = BCountry;
    }

    @Column(name = "DELIVERYTERMSDESCR", length = 200)
    public String getDeliverytermsdescr() {
        return this.deliverytermsdescr;
    }

    public void setDeliverytermsdescr(String deliverytermsdescr) {
        this.deliverytermsdescr = deliverytermsdescr;
    }

    @Column(name = "B_FAX", length = 50)
    public String getBFax() {
        return this.BFax;
    }

    public void setBFax(String BFax) {
        this.BFax = BFax;
    }

    @Column(name = "B_EMAIL", length = 200)
    public String getBEmail() {
        return this.BEmail;
    }

    public void setBEmail(String BEmail) {
        this.BEmail = BEmail;
    }

    @Column(name = "PAYMENTTERMSDESCR", length = 200)
    public String getPaymenttermsdescr() {
        return this.paymenttermsdescr;
    }

    public void setPaymenttermsdescr(String paymenttermsdescr) {
        this.paymenttermsdescr = paymenttermsdescr;
    }

    @Column(name = "DELIVERYTERMS", length = 10)
    public String getDeliveryterms() {
        return this.deliveryterms;
    }

    public void setDeliveryterms(String deliveryterms) {
        this.deliveryterms = deliveryterms;
    }

    @Column(name = "PAYMENTTERMS", length = 10)
    public String getPaymentterms() {
        return this.paymentterms;
    }

    public void setPaymentterms(String paymentterms) {
        this.paymentterms = paymentterms;
    }

    @Column(name = "DOOR", length = 10)
    public String getDoor() {
        return this.door;
    }

    public void setDoor(String door) {
        this.door = door;
    }

    @Column(name = "ROUTE", length = 10)
    public String getRoute() {
        return this.route;
    }

    public void setRoute(String route) {
        this.route = route;
    }

    @Column(name = "STOP", length = 10)
    public String getStop() {
        return this.stop;
    }

    public void setStop(String stop) {
        this.stop = stop;
    }

    @Column(name = "SOSTATUS", nullable = false, length = 2)
    public String getSostatus() {
        return this.sostatus;
    }

    public void setSostatus(String sostatus) {
        this.sostatus = sostatus;

        if(this.sostatus.equals("00"))
        {
            this.glDocOrderHeader.setStatus("ACCEPT");
            this.glOrderHerader.setCurrentStatus("ACCEPT");
        }
       else if(this.sostatus.equals("63")){
            this.glOrderHerader.setCurrentStatus("CHECK");
        }
        else if (this.sostatus .equals( "90"))
        {
            this.glDocOrderHeader.setStatus("CANCELED");
            this.glOrderHerader.setCurrentStatus("CANCELED");
            this.glHeader.setState("ACCEPT");
        }
        else if (this.sostatus .equals("99"))
        {
            this.glDocOrderHeader.setStatus("DELIVERED");
            this.glHeader.setState("DELIVERED");
        }
    }

    @Column(name = "PLACEOFDISCHARGE", length = 60)
    public String getPlaceofdischarge() {
        return this.placeofdischarge;
    }

    public void setPlaceofdischarge(String placeofdischarge) {
        this.placeofdischarge = placeofdischarge;
    }

    @Column(name = "PLACEOFDELIVERY", length = 60)
    public String getPlaceofdelivery() {
        return this.placeofdelivery;
    }

    public void setPlaceofdelivery(String placeofdelivery) {
        this.placeofdelivery = placeofdelivery;
    }

    @Column(name = "ORDERTYPE", length = 20)
    public String getOrdertype() {
        return this.ordertype;
    }

    public void setOrdertype(String ordertype) {
        this.ordertype = ordertype;
        this.glHeader.setDeliverOrderType(getOrdertype());
        this.glDocOrderHeader.setOrderType(getOrdertype());
        this.gLinOrder.setOrderType(getOrdertype());
        this.gLinReverseOrder.setDeliverOrderType(getOrdertype());
        this.glOrderHerader.setOrderType(getOrdertype());

    }

    @Column(name = "USERDEFINE1", length = 400)
    public String getUserdefine1() {
        return this.userdefine1;
    }

    public void setUserdefine1(String userdefine1) {
        this.userdefine1 = userdefine1;
    }

    @Column(name = "USERDEFINE2", length = 400)
    public String getUserdefine2() {
        return this.userdefine2;
    }

    public void setUserdefine2(String userdefine2) {
        this.userdefine2 = userdefine2;
        this.gLinReverseOrder.setPreDeliveryOrderCode(getUserdefine2());
    }

    @Column(name = "USERDEFINE3", length = 400)
    public String getUserdefine3() {
        return this.userdefine3;
    }

    public void setUserdefine3(String userdefine3) {
        this.userdefine3 = userdefine3;
        this.gLinReverseOrder.setPreDeliveryOrderCodeWms(getUserdefine3());
    }

    @Column(name = "USERDEFINE4", length = 400)
    public String getUserdefine4() {
        return this.userdefine4;
    }

    public void setUserdefine4(String userdefine4) {
        this.userdefine4 = userdefine4;
    }

    @Column(name = "USERDEFINE5", length = 400)
    public String getUserdefine5() {
        return this.userdefine5;
    }

    public void setUserdefine5(String userdefine5) {
        this.userdefine5 = userdefine5;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "ADDTIME", nullable = false, length = 7)
    public Date getAddtime() {
        return this.addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    @Column(name = "ADDWHO", length = 35)
    public String getAddwho() {
        return this.addwho;
    }

    public void setAddwho(String addwho) {
        this.addwho = addwho;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "EDITTIME", nullable = false, length = 7)
    public Date getEdittime() {
        return this.edittime;
    }

    public void setEdittime(Date edittime) {
        this.edittime = edittime;
        this.glHeader.setOrderConfirmTime(dateFormat.format(getEdittime()));
        this.glDocOrderHeader.setOrderConfirmTime(dateFormat.format(getEdittime()));
        this.glOrderHerader.setOperatorTime(dateFormat.format(getEdittime()));
    }

    @Column(name = "EDITWHO", length = 35)
    public String getEditwho() {
        return this.editwho;
    }

    public void setEditwho(String editwho) {
        this.editwho = editwho;
    }

    @Column(name = "NOTES", length = 1000)
    public String getNotes() {
        return this.notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    @Column(name = "SOREFERENCE2", length = 50)
    public String getSoreference2() {
        return this.soreference2;
    }

    public void setSoreference2(String soreference2) {
        this.soreference2 = soreference2;
    }

    @Column(name = "SOREFERENCE3", length = 50)
    public String getSoreference3() {
        return this.soreference3;
    }

    public void setSoreference3(String soreference3) {
        this.soreference3 = soreference3;
    }

    @Column(name = "CARRIERID", length = 30)
    public String getCarrierid() {
        return this.carrierid;
    }

    public void setCarrierid(String carrierid) {
        this.carrierid = carrierid;
        this.gLinOrder.setLogisticsCode(getCarrierid());
        this.gLinReverseOrder.setLogisticsCode(getCarrierid());
    }

    @Column(name = "CARRIERNAME", length = 400)
    public String getCarriername() {
        return this.carriername;
    }

    public void setCarriername(String carriername) {
        this.carriername = carriername;
        this.glDocOrderHeader.setLogisticsName(getCarriername());
        this.gLinReverseOrder.setLogisticsName(getCarriername());

    }

    @Column(name = "CARRIERADDRESS1", length = 400)
    public String getCarrieraddress1() {
        return this.carrieraddress1;
    }

    public void setCarrieraddress1(String carrieraddress1) {
        this.carrieraddress1 = carrieraddress1;
    }

    @Column(name = "CARRIERADDRESS3", length = 50)
    public String getCarrieraddress3() {
        return this.carrieraddress3;
    }

    public void setCarrieraddress3(String carrieraddress3) {this.glPickerInfo.setId(getCarrieraddress3());
        this.carrieraddress3 = carrieraddress3;
    }

    @Column(name = "CARRIERADDRESS2", length = 50)
    public String getCarrieraddress2() {
        return this.carrieraddress2;
    }

    public void setCarrieraddress2(String carrieraddress2) {
        this.carrieraddress2 = carrieraddress2;
        this.glPickerInfo.setCarNo(getCAddress2());

    }

    @Column(name = "CARRIERADDRESS4", length = 50)
    public String getCarrieraddress4() {
        return this.carrieraddress4;
    }

    public void setCarrieraddress4(String carrieraddress4) {
        this.carrieraddress4 = carrieraddress4;
        this.glPickerInfo.setCompany(getCarrieraddress4());

    }

    @Column(name = "CARRIERCITY", length = 50)
    public String getCarriercity() {
        return this.carriercity;
    }

    public void setCarriercity(String carriercity) {
        this.carriercity = carriercity;
    }

    @Column(name = "CARRIERPROVINCE", length = 50)
    public String getCarrierprovince() {
        return this.carrierprovince;
    }

    public void setCarrierprovince(String carrierprovince) {
        this.carrierprovince = carrierprovince;
    }

    @Column(name = "CARRIERCOUNTRY", length = 20)
    public String getCarriercountry() {
        return this.carriercountry;
    }

    public void setCarriercountry(String carriercountry) {
        this.carriercountry = carriercountry;
    }

    @Column(name = "CARRIERZIP", length = 10)
    public String getCarrierzip() {
        return this.carrierzip;
    }

    public void setCarrierzip(String carrierzip) {
        this.carrierzip = carrierzip;
        this.glPickerInfo.setZipCode(getCarrierzip());

    }

    @Column(name = "ISSUEPARTYID", length = 30)
    public String getIssuepartyid() {
        return this.issuepartyid;
    }

    public void setIssuepartyid(String issuepartyid) {
        this.issuepartyid = issuepartyid;
    }

    @Column(name = "ISSUEPARTYNAME", length = 400)
    public String getIssuepartyname() {
        return this.issuepartyname;
    }

    public void setIssuepartyname(String issuepartyname) {
        this.issuepartyname = issuepartyname;
    }

    @Column(name = "I_ADDRESS1", length = 400)
    public String getIAddress1() {
        return this.IAddress1;
    }

    public void setIAddress1(String IAddress1) {
        this.IAddress1 = IAddress1;
        this.glSenderInfo.setDetailAddress(getIAddress1());

    }

    @Column(name = "I_ADDRESS2", length = 50)
    public String getIAddress2() {
        return this.IAddress2;
    }

    public void setIAddress2(String IAddress2) {
        this.IAddress2 = IAddress2;
        this.glSenderInfo.setTown(getIAddress2());

    }

    @Column(name = "I_ADDRESS3", length = 50)
    public String getIAddress3() {
        return this.IAddress3;
    }

    public void setIAddress3(String IAddress3) {
        this.IAddress3 = IAddress3;
        this.glSenderInfo.setArea(getIAddress3());

    }

    @Column(name = "I_ADDRESS4", length = 50)
    public String getIAddress4() {
        return this.IAddress4;
    }

    public void setIAddress4(String IAddress4) {
        this.IAddress4 = IAddress4;
        this.glSenderInfo.setCompany(getIAddress4());

    }

    @Column(name = "I_CITY", length = 50)
    public String getICity() {
        return this.ICity;
    }

    public void setICity(String ICity) {
        this.ICity = ICity;
        this.glSenderInfo.setCity(getICity());
        this.gLinGetInfo.setGetCity(getCCity());
        this.gLinReverseGetInfo.setDeliveryCity(getCCity());

    }

    @Column(name = "I_PROVINCE", length = 50)
    public String getIProvince() {
        return this.IProvince;
    }

    public void setIProvince(String IProvince) {
        this.IProvince = IProvince;
        this.glSenderInfo.setProvince(getIProvince());

    }

    @Column(name = "I_COUNTRY", length = 2)
    public String getICountry() {
        return this.ICountry;
    }

    public void setICountry(String ICountry) {
        this.ICountry = ICountry;
        this.glSenderInfo.setCountryCode(getICountry());

    }

    @Column(name = "I_ZIP", length = 10)
    public String getIZip() {
        return this.IZip;
    }

    public void setIZip(String IZip) {
        this.IZip = IZip;
        this.glSenderInfo.setZipCode(getIZip());

    }

    @Temporal(TemporalType.DATE)
    @Column(name = "LASTSHIPMENTTIME", length = 7)
    public Date getLastshipmenttime() {
        return this.lastshipmenttime;
    }

    public void setLastshipmenttime(Date lastshipmenttime) {
        this.lastshipmenttime = lastshipmenttime;
    }

    @Column(name = "EDISENDFLAG", nullable = false, length = 1)
    public String getEdisendflag() {
        return this.edisendflag;
    }

    public void setEdisendflag(String edisendflag) {
        this.edisendflag = edisendflag;
    }

    @Column(name = "PICKING_PRINT_FLAG", length = 1)
    public String getPickingPrintFlag() {
        return this.pickingPrintFlag;
    }

    public void setPickingPrintFlag(String pickingPrintFlag) {
        this.pickingPrintFlag = pickingPrintFlag;
    }

    @Column(name = "CREATESOURCE", length = 35)
    public String getCreatesource() {
        return this.createsource;
    }

    public void setCreatesource(String createsource) {
        this.createsource = createsource;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "EDISENDTIME", length = 7)
    public Date getEdisendtime() {
        return this.edisendtime;
    }

    public void setEdisendtime(Date edisendtime) {
        this.edisendtime = edisendtime;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "EDISENDTIME2", length = 7)
    public Date getEdisendtime2() {
        return this.edisendtime2;
    }

    public void setEdisendtime2(Date edisendtime2) {
        this.edisendtime2 = edisendtime2;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "EDISENDTIME3", length = 7)
    public Date getEdisendtime3() {
        return this.edisendtime3;
    }

    public void setEdisendtime3(Date edisendtime3) {
        this.edisendtime3 = edisendtime3;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "EDISENDTIME4", length = 7)
    public Date getEdisendtime4() {
        return this.edisendtime4;
    }

    public void setEdisendtime4(Date edisendtime4) {
        this.edisendtime4 = edisendtime4;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "EDISENDTIME5", length = 7)
    public Date getEdisendtime5() {
        return this.edisendtime5;
    }

    public void setEdisendtime5(Date edisendtime5) {
        this.edisendtime5 = edisendtime5;
    }

    @Column(name = "B_TEL1", length = 50)
    public String getBTel1() {
        return this.BTel1;
    }

    public void setBTel1(String BTel1) {
        this.BTel1 = BTel1;
    }

    @Column(name = "B_TEL2", length = 50)
    public String getBTel2() {
        return this.BTel2;
    }

    public void setBTel2(String BTel2) {
        this.BTel2 = BTel2;
    }

    @Column(name = "CARRIERCONTACT", length = 400)
    public String getCarriercontact() {
        return this.carriercontact;
    }

    public void setCarriercontact(String carriercontact) {
        this.carriercontact = carriercontact;
        this.glPickerInfo.setName(getCarriercontact());

    }

    @Column(name = "CARRIERMAIL", length = 50)
    public String getCarriermail() {
        return this.carriermail;
    }

    public void setCarriermail(String carriermail) {
        this.carriermail = carriermail;
    }

    @Column(name = "CARRIERFAX", length = 50)
    public String getCarrierfax() {
        return this.carrierfax;
    }

    public void setCarrierfax(String carrierfax) {
        this.carrierfax = carrierfax;
    }

    @Column(name = "CARRIERTEL1", length = 50)
    public String getCarriertel1() {
        return this.carriertel1;
    }

    public void setCarriertel1(String carriertel1) {
        this.carriertel1 = carriertel1;
        this.glPickerInfo.setMobile(getCarriertel1());


    }

    @Column(name = "CARRIERTEL2", length = 40)
    public String getCarriertel2() {
        return this.carriertel2;
    }

    public void setCarriertel2(String carriertel2) {
        this.carriertel2 = carriertel2;
    }

    @Column(name = "C_MAIL", length = 200)
    public String getCMail() {
        return this.CMail;
    }

    public void setCMail(String CMail) {
        this.CMail = CMail;
        this.glReceiverInfo.setEmail(getCMail());

    }

    @Column(name = "C_TEL1", length = 40)
    public String getCTel1() {
        return this.CTel1;
    }

    public void setCTel1(String CTel1) {
        this.CTel1 = CTel1;
        this.glReceiverInfo.setMobile(getCTel1());
        this.gLinGetInfo.setGetMobile(getCTel1());
        if(CTel1==null||CTel1.equals("")){
            this.gLinReverseGetInfo.setConsigneePhone("800");
        }
        else{
            this.gLinReverseGetInfo.setConsigneePhone(getCTel1());
        }

    }

    @Column(name = "C_TEL2", length = 40)
    public String getCTel2() {
        return this.CTel2;
    }

    public void setCTel2(String CTel2) {
        this.CTel2 = CTel2;
        this.glReceiverInfo.setTel(getCTel2());

    }

    @Column(name = "I_CONTACT", length = 40)
    public String getIContact() {
        return this.IContact;
    }

    public void setIContact(String IContact) {
        this.IContact = IContact;
        this.glSenderInfo.setName(getIContact());

    }

    @Column(name = "I_MAIL", length = 200)
    public String getIMail() {
        return this.IMail;
    }

    public void setIMail(String IMail) {
        this.IMail = IMail;
        this.glSenderInfo.setEmail(getIMail());

    }

    @Column(name = "I_FAX", length = 20)
    public String getIFax() {
        return this.IFax;
    }

    public void setIFax(String IFax) {
        this.IFax = IFax;
    }

    @Column(name = "I_TEL1", length = 40)
    public String getITel1() {
        return this.ITel1;
    }

    public void setITel1(String ITel1) {
        this.ITel1 = ITel1;
        this.glSenderInfo.setMobile(getITel1());

    }

    @Column(name = "I_TEL2", length = 40)
    public String getITel2() {
        return this.ITel2;
    }

    public void setITel2(String ITel2) {
        this.ITel2 = ITel2;
        this.glSenderInfo.setTel(getITel2());

    }

    @Column(name = "RELEASESTATUS", nullable = false, length = 1)
    public String getReleasestatus() {
        return this.releasestatus;
    }

    public void setReleasestatus(String releasestatus) {
        this.releasestatus = releasestatus;
    }

    @Column(name = "TRANSPORTATION", length = 200)
    public String getTransportation() {
        return this.transportation;
    }

    public void setTransportation(String transportation) {
        this.transportation = transportation;
    }

    @Column(name = "SOREFERENCE4", length = 50)
    public String getSoreference4() {
        return this.soreference4;
    }

    public void setSoreference4(String soreference4) {
        this.soreference4 = soreference4;
    }

    @Column(name = "SOREFERENCE5", length = 50)
    public String getSoreference5() {
        return this.soreference5;
    }

    public void setSoreference5(String soreference5) {
        this.soreference5 = soreference5;
    }

    @Column(name = "H_EDI_01", length = 400)
    public String getHEdi01() {
        return this.HEdi01;
    }

    public void setHEdi01(String HEdi01) {
        this.HEdi01 = HEdi01;
    }

    @Column(name = "H_EDI_02", length = 400)
    public String getHEdi02() {
        return this.HEdi02;
    }

    public void setHEdi02(String HEdi02) {
        this.HEdi02 = HEdi02;
    }

    @Column(name = "H_EDI_03", length = 400)
    public String getHEdi03() {
        return this.HEdi03;
    }

    public void setHEdi03(String HEdi03) {
        this.HEdi03 = HEdi03;
    }

    @Column(name = "H_EDI_04", length = 400)
    public String getHEdi04() {
        return this.HEdi04;
    }

    public void setHEdi04(String HEdi04) {
        this.HEdi04 = HEdi04;
    }

    @Column(name = "H_EDI_05", length = 400)
    public String getHEdi05() {
        return this.HEdi05;
    }

    public void setHEdi05(String HEdi05) {
        this.HEdi05 = HEdi05;
    }

    @Column(name = "H_EDI_06", length = 400)
    public String getHEdi06() {
        return this.HEdi06;
    }

    public void setHEdi06(String HEdi06) {
        this.HEdi06 = HEdi06;
    }

    @Column(name = "H_EDI_07", length = 400)
    public String getHEdi07() {
        return this.HEdi07;
    }

    public void setHEdi07(String HEdi07) {
        this.HEdi07 = HEdi07;
    }

    @Column(name = "H_EDI_08", length = 400)
    public String getHEdi08() {
        return this.HEdi08;
    }

    public void setHEdi08(String HEdi08) {
        this.HEdi08 = HEdi08;
        this.glDocOrderHeader.setTransportMode(getHEdi08());

    }

    @Column(name = "H_EDI_09", precision = 18, scale = 8)
    public Double getHEdi09() {
        return this.HEdi09;
    }

    public void setHEdi09(Double HEdi09) {
        this.HEdi09 = HEdi09;
    }

    @Column(name = "H_EDI_10", precision = 18, scale = 8)
    public Double getHEdi10() {
        return this.HEdi10;
    }

    public void setHEdi10(Double HEdi10) {
        this.HEdi10 = HEdi10;
    }

    @Column(name = "USERDEFINE6", length = 400)
    public String getUserdefine6() {
        return this.userdefine6;
    }

    public void setUserdefine6(String userdefine6) {
        this.userdefine6 = userdefine6;
    }

    @Column(name = "ORDER_PRINT_FLAG", length = 1)
    public String getOrderPrintFlag() {
        return this.orderPrintFlag;
    }

    public void setOrderPrintFlag(String orderPrintFlag) {
        this.orderPrintFlag = orderPrintFlag;
    }

    @Column(name = "RFGETTASK", length = 1)
    public String getRfgettask() {
        return this.rfgettask;
    }

    public void setRfgettask(String rfgettask) {
        this.rfgettask = rfgettask;
    }

    @Column(name = "WAREHOUSEID", length = 30)
    public String getWarehouseid() {
        return this.warehouseid;
    }

    public void setWarehouseid(String warehouseid) {
        this.warehouseid = warehouseid;
        this.glHeader.setWarehouseCode(getWarehouseid());
        this.glDocOrderHeader.setWarehouseCode(getWarehouseid());
        this.gLinOrder.setWarehouseCode(getWarehouseid());
        this.gLinReverseOrder.setWarehouseCode(getWarehouseid());
        this.glOrderHerader.setWarehouseCode(getWarehouseid());

    }

    @Column(name = "ERPCANCELFLAG", length = 1)
    public String getErpcancelflag() {
        return this.erpcancelflag;
    }

    public void setErpcancelflag(String erpcancelflag) {
        this.erpcancelflag = erpcancelflag;
    }

    @Column(name = "ZONEGROUP", length = 10)
    public String getZonegroup() {
        return this.zonegroup;
    }

    public void setZonegroup(String zonegroup) {
        this.zonegroup = zonegroup;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "MEDICALXMLTIME", length = 7)
    public Date getMedicalxmltime() {
        return this.medicalxmltime;
    }

    public void setMedicalxmltime(Date medicalxmltime) {
        this.medicalxmltime = medicalxmltime;
    }

    @Column(name = "PLACEOFLOADING", length = 60)
    public String getPlaceofloading() {
        return this.placeofloading;
    }

    public void setPlaceofloading(String placeofloading) {
        this.placeofloading = placeofloading;
    }

    @Column(name = "REQUIREDELIVERYNO", length = 1)
    public String getRequiredeliveryno() {
        return this.requiredeliveryno;
    }

    public void setRequiredeliveryno(String requiredeliveryno) {
        this.requiredeliveryno = requiredeliveryno;
    }

    @Column(name = "SINGLEMATCH", length = 400)
    public String getSinglematch() {
        return this.singlematch;
    }

    public void setSinglematch(String singlematch) {
        this.singlematch = singlematch;
    }

    @Column(name = "SERIALNOCATCH", length = 1)
    public String getSerialnocatch() {
        return this.serialnocatch;
    }

    public void setSerialnocatch(String serialnocatch) {
        this.serialnocatch = serialnocatch;
    }

    @Column(name = "FOLLOWUP", length = 20)
    public String getFollowup() {
        return this.followup;
    }

    public void setFollowup(String followup) {
        this.followup = followup;
    }

    @Column(name = "USERDEFINEA", length = 20)
    public String getUserdefinea() {
        return this.userdefinea;
    }

    public void setUserdefinea(String userdefinea) {
        this.userdefinea = userdefinea;
    }

    @Column(name = "USERDEFINEB", length = 20)
    public String getUserdefineb() {
        return this.userdefineb;
    }

    public void setUserdefineb(String userdefineb) {
        this.userdefineb = userdefineb;
    }

    @Column(name = "SALESORDERNO", length = 20)
    public String getSalesorderno() {
        return this.salesorderno;
    }

    public void setSalesorderno(String salesorderno) {
        this.salesorderno = salesorderno;
        this.glDocOrderHeader.setOrderCodeWms(getOrderno());
        this.glHeader.setOrderCodeWms(getOrderno());
        this.gLinReverseOrder.setOrderCodeWms(getOrderno());
    }

    @Column(name = "INVOICEPRINTFLAG", length = 1)
    public String getInvoiceprintflag() {
        return this.invoiceprintflag;
    }

    public void setInvoiceprintflag(String invoiceprintflag) {
        this.invoiceprintflag = invoiceprintflag;
    }

    @Column(name = "INVOICENO", length = 200)
    public String getInvoiceno() {
        return this.invoiceno;
    }

    public void setInvoiceno(String invoiceno) {
        this.invoiceno = invoiceno;
    }

    @Column(name = "INVOICETITLE", length = 200)
    public String getInvoicetitle() {
        return this.invoicetitle;
    }

    public void setInvoicetitle(String invoicetitle) {
        this.invoicetitle = invoicetitle;
        //this.gLinReverseInvoies.setInvoiceHeader(getInvoicetitle());
    }

    @Column(name = "INVOICETYPE", length = 200)
    public String getInvoicetype() {
        return this.invoicetype;
    }

    public void setInvoicetype(String invoicetype) {
        this.invoicetype = invoicetype;
       // this.gLinReverseInvoies.setInvoiceType(getInvoicetype());
    }

    @Column(name = "INVOICEITEM", length = 200)
    public String getInvoiceitem() {
        return this.invoiceitem;
    }

    public void setInvoiceitem(String invoiceitem) {
        this.invoiceitem = invoiceitem;
    }

    @Column(name = "INVOICEAMOUNT", precision = 10)
    public Double getInvoiceamount() {
        return this.invoiceamount;
    }

    public void setInvoiceamount(Double invoiceamount) {
        this.invoiceamount = invoiceamount;
    }

    @Column(name = "ARCHIVEFLAG", nullable = false, length = 1)
    public String getArchiveflag() {
        return this.archiveflag;
    }

    public void setArchiveflag(String archiveflag) {
        this.archiveflag = archiveflag;
    }

    @Column(name = "CONSIGNEENAME_E", length = 200)
    public String getConsigneenameE() {
        return this.consigneenameE;
    }

    public void setConsigneenameE(String consigneenameE) {
        this.consigneenameE = consigneenameE;
    }

    @Column(name = "PUTTOLOCATION", length = 60)
    public String getPuttolocation() {
        return this.puttolocation;
    }

    public void setPuttolocation(String puttolocation) {
        this.puttolocation = puttolocation;
    }

    @Column(name = "FUL_ALC", length = 1)
    public String getFulAlc() {
        return this.fulAlc;
    }

    public void setFulAlc(String fulAlc) {
        this.fulAlc = fulAlc;
    }

    @Column(name = "DELIVERYNO", length = 30)
    public String getDeliveryno() {
        return this.deliveryno;
    }

    public void setDeliveryno(String deliveryno) {
        this.deliveryno = deliveryno;
    }

    @Column(name = "CHANNEL", nullable = false, length = 20)
    public String getChannel() {
        return this.channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    @Column(name = "WAVENO", nullable = false, length = 30)
    public String getWaveno() {
        return this.waveno;
    }

    public void setWaveno(String waveno) {
        this.waveno = waveno;
    }

    @Column(name = "ALLOCATIONCOUNT", precision = 22, scale = 0)
    public BigDecimal getAllocationcount() {
        return this.allocationcount;
    }

    public void setAllocationcount(BigDecimal allocationcount) {
        this.allocationcount = allocationcount;
    }

    @Column(name = "EXPRESSPRINTFLAG", length = 1)
    public String getExpressprintflag() {
        return this.expressprintflag;
    }

    public void setExpressprintflag(String expressprintflag) {
        this.expressprintflag = expressprintflag;
    }

    @Column(name = "DELIVERYNOTEPRINTFLAG", length = 1)
    public String getDeliverynoteprintflag() {
        return this.deliverynoteprintflag;
    }

    public void setDeliverynoteprintflag(String deliverynoteprintflag) {
        this.deliverynoteprintflag = deliverynoteprintflag;
    }

    @Column(name = "WEIGHTINGFLAG", length = 1)
    public String getWeightingflag() {
        return this.weightingflag;
    }

    public void setWeightingflag(String weightingflag) {
        this.weightingflag = weightingflag;
    }

    @Column(name = "UDFPRINTFLAG1", length = 1)
    public String getUdfprintflag1() {
        return this.udfprintflag1;
    }

    public void setUdfprintflag1(String udfprintflag1) {
        this.udfprintflag1 = udfprintflag1;
    }

    @Column(name = "UDFPRINTFLAG2", length = 1)
    public String getUdfprintflag2() {
        return this.udfprintflag2;
    }

    public void setUdfprintflag2(String udfprintflag2) {
        this.udfprintflag2 = udfprintflag2;
    }

    @Column(name = "UDFPRINTFLAG3", length = 1)
    public String getUdfprintflag3() {
        return this.udfprintflag3;
    }

    public void setUdfprintflag3(String udfprintflag3) {
        this.udfprintflag3 = udfprintflag3;
    }

    @Column(name = "ALLOWSHIPMENT", length = 2)
    public String getAllowshipment() {
        return this.allowshipment;
    }

    public void setAllowshipment(String allowshipment) {
        this.allowshipment = allowshipment;
    }

    @Column(name = "CARTONGROUP", length = 20)
    public String getCartongroup() {
        return this.cartongroup;
    }

    public void setCartongroup(String cartongroup) {
        this.cartongroup = cartongroup;
    }

    @Column(name = "CARTONID", length = 20)
    public String getCartonid() {
        return this.cartonid;
    }

    public void setCartonid(String cartonid) {
        this.cartonid = cartonid;
    }

    @Column(name = "ORDERGROUPNO", length = 20)
    public String getOrdergroupno() {
        return this.ordergroupno;
    }

    public void setOrdergroupno(String ordergroupno) {
        this.ordergroupno = ordergroupno;
    }

    @Column(name = "TRANSSERVICELEVEL", length = 20)
    public String getTransservicelevel() {
        return this.transservicelevel;
    }

    public void setTransservicelevel(String transservicelevel) {
        this.transservicelevel = transservicelevel;
    }

    @Column(name = "ALLOWSHIP", nullable = false, length = 2)
    public String getAllowship() {
        return this.allowship;
    }

    public void setAllowship(String allowship) {
        this.allowship = allowship;
    }

    @Column(name = "ORDERHANDLEINSTRUCTION", length = 200)
    public String getOrderhandleinstruction() {
        return this.orderhandleinstruction;
    }

    public void setOrderhandleinstruction(String orderhandleinstruction) {
        this.orderhandleinstruction = orderhandleinstruction;
    }

    @Column(name = "H_EDI_21", length = 20)
    public String getHEdi21() {
        return this.HEdi21;
    }

    public void setHEdi21(String HEdi21) {
        this.HEdi21 = HEdi21;
    }

    @Column(name = "ALLOW_PARTIAL_SHIP", length = 1)
    public String getAllowPartialShip() {
        return this.allowPartialShip;
    }

    public void setAllowPartialShip(String allowPartialShip) {
        this.allowPartialShip = allowPartialShip;
    }

    @Column(name = "PROCESSINGFLAG", length = 1)
    public String getProcessingflag() {
        return this.processingflag;
    }

    public void setProcessingflag(String processingflag) {
        this.processingflag = processingflag;
    }

    @Column(name = "WAVERULE", length = 20)
    public String getWaverule() {
        return this.waverule;
    }

    public void setWaverule(String waverule) {
        this.waverule = waverule;
    }

    @Column(name = "LOCGROUP1LIST", length = 100)
    public String getLocgroup1list() {
        return this.locgroup1list;
    }

    public void setLocgroup1list(String locgroup1list) {
        this.locgroup1list = locgroup1list;
    }

    @Column(name = "LOCGROUP2LIST", length = 100)
    public String getLocgroup2list() {
        return this.locgroup2list;
    }

    public void setLocgroup2list(String locgroup2list) {
        this.locgroup2list = locgroup2list;
    }
}
